package com.ruoyi.production.service.seed;

import com.ruoyi.production.domain.seed.SeedPurchase;

import java.util.List;

/**
 * 种子购买信息Service接口
 *
 * @author ruoyi
 * @date 2021-07-07
 */
public interface ISeedPurchaseService
{
    /**
     * 查询种子购买信息
     *
     * @param seedPurchaseId 种子购买信息ID
     * @return 种子购买信息
     */
    public SeedPurchase selectSeedPurchaseById(Long seedPurchaseId);

    /**
     * 查询种子购买信息列表
     *
     * @param seedPurchase 种子购买信息
     * @return 种子购买信息集合
     */
    public List<SeedPurchase> selectSeedPurchaseList(SeedPurchase seedPurchase);

    /**
     * 新增种子购买信息
     *
     * @param seedPurchase 种子购买信息
     * @return 结果
     */
    public int insertSeedPurchase(SeedPurchase seedPurchase);

    /**
     * 修改种子购买信息
     *
     * @param seedPurchase 种子购买信息
     * @return 结果
     */
    public int updateSeedPurchase(SeedPurchase seedPurchase);

    /**
     * 批量删除种子购买信息
     *
     * @param seedPurchaseIds 需要删除的种子购买信息ID
     * @return 结果
     */
    public int deleteSeedPurchaseByIds(Long[] seedPurchaseIds);

    /**
     * 删除种子购买信息信息
     *
     * @param seedPurchaseId 种子购买信息ID
     * @return 结果
     */
    public int deleteSeedPurchaseById(Long seedPurchaseId);

    /**
     * 插入种子购买表更新种子量表
     * @param seedPurchase
     * @return
     */
    public int insertPurchaseUpdateAmount(SeedPurchase seedPurchase);
}
